﻿using System;
using System.Xml;

namespace LF.Domain.Helper
{
	public class SqlHelper
	{
		public static string Sql<T>() where T : class
		{
			var path = $"/sql/{typeof(T).Name}";
            XmlDocument doc = new XmlDocument();
			doc.Load(DomainConfig.SqlXml);
			var sql = doc.SelectSingleNode(path);
			return sql!.InnerText;
        }
	}
}

